<?php 

function httpRequests($URL){
    $ch = curl_init();  
    curl_setopt($ch, CURLOPT_URL, $URL);  
    curl_setopt($ch, CURLOPT_HEADER, false);  
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $result=curl_exec($ch);  
    curl_close($ch);return $result;
}



function decodes($url){
 return  json_decode(json_decode(httpRequests($url),true)['data'])->token ;
}

function decodes2($url){
	$result = json_decode(httpRequests($url),true);
	return $result;
}



